<?php

$cars = array('加上拉','金穗卡','极速酷客');
echo $cars[1];
$cars[0] = '少林寺；';


print_r($cars);
echo count($cars);

echo "</br>";
echo "foreach"."</br>";
foreach ($cars as $value) {
    echo $value."</br>";   
}

echo "</br>";
echo "for"."</br>";
$len = count($cars) ;
for ($i=0;$i<$len;$i++){
    echo $cars[$i]."</br>";
    
}

$message = array(
     'pic' => '<img src=" images/2.jpg" alt="" />',
     'name' => '吴志培',
     'content' => '人如果没有了理想和梦想，那跟咸鱼有什么区别。'
) ;
foreach ($message as $key => $value) {
    echo $key . "=>".$value."</br>";
}

?>